<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page isErrorPage="true" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="icon" type="image/ico"
	href="${pageContext.request.contextPath}/resourse/image/network.gif" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Error!</title>
</head>
<body>
	<c:set var="error_code" value="${requestScope['javax.servlet.error.status_code']}" />
	<c:if test="${error_code == '404'}">
		<h1>Error: <c:out value="${error_code}"/></h1>
		<h3>URI <c:out value="${requestScope['javax.servlet.forward.request_uri']}"/> не найден</h3>
	</c:if>
	<c:if test="${error_code == '500'}">
		<h1>Error: <c:out value="${error_code}"/></h1>
		<h3>Внутрення ошибка</h3>
	</c:if>
	<c:if test="${not empty errorMessage}">
		<h1> Error: <c:out value="${errorMessage}"/> !!! </h1>
	</c:if>
</body>
</html>